package com.yangxinxin.lesson.exception;
/** @Author yangxinxin
 * @Description //TODO 
 * @Date 11:24 2020/2/21
 * @Param 
 * @return 
 **/
public class BusinessException extends  RuntimeException{
    private  final int messageCode;

    private  final  String messageDefault;//提示

    public BusinessException(int messageCode, String message) {
        super(message);
        this.messageCode = messageCode;
        this.messageDefault = message;
    }

    public int getMessageCode() {
        return messageCode;
    }

    public String getMessageDefault() {
        return messageDefault;
    }
}
